using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Windows.Forms;
using System.Reflection;
using FarPoint.Win.Spread;
using FarPoint.Win.Spread.CellType;
using FarPoint.Win.Spread.Model;
using FarPoint.Win;
using Spread.Common.DataStore;

namespace Spread.Touch.Features
{
    public partial class IntroTouch : Spread.Common.Features.Sample.BaseSampleControl
    {
        private AccessDataSource _dataSource;

        public IntroTouch()
        {
            InitializeComponent();
            Name = "Introduction";

            _dataSource = new DataService().AccessDataSource;

            InitSpreadSheet();
            InitControls();
        }

        #region Private methods
        private void InitSpreadSheet()
        {
            fpSpread.TabStripPolicy = TabStripPolicy.Always;
            fpSpread.TabStrip.Editable = true;

            SheetView sheet = fpSpread.ActiveSheet;
            fpSpread.Sheets.AddRange(new SheetView[] { new SheetView(), new SheetView(), new SheetView(),
                new SheetView() });

            foreach (SheetView sheetView in fpSpread.Sheets)
                sheetView.SetMultipleRowHeights(0, sheetView.RowCount, 24);

            sheet.DataSource = _dataSource.GetNWINDData("Products");

            DataTable supplierTable = _dataSource.GetDataFrom("Nwind.mdb", "select SupplierID, CompanyName from Suppliers")
                .Tables[0];
            List<string> itemsData = new List<string>();
            List<string> items = new List<string>();
            foreach (DataRow dataRow in supplierTable.Rows)
            {
                itemsData.Add(dataRow["SupplierID"].ToString());
                items.Add(dataRow["CompanyName"].ToString());
            }

            ComboBoxCellType comboCell = new ComboBoxCellType();
            comboCell.EditorValue = EditorValue.ItemData;
            comboCell.Items = items.ToArray();
            comboCell.ItemData = itemsData.ToArray();

            sheet.Columns[2].CellType = comboCell;
            sheet.Columns[2].Label = "Supplier";

            sheet.SetMultipleRowHeights(0, sheet.RowCount, 24);

            for (int col = 0; col < sheet.ColumnCount; ++col)
                sheet.Columns[col].Width = sheet.GetPreferredColumnWidth(col, PreferredSizeColumnOptions.IncludeAll);

            // Remove Zoom elements from status bar
            fpSpread.StatusBar.Elements.RemoveAt(7);
            fpSpread.StatusBar.Elements.RemoveAt(6);
        }

        private void InitControls()
        {
            chkShowGrippers.Checked = true;
            chkShowGrippers.CheckedChanged += CheckBox_CheckedChanged;

            btnGripperLineColor.BackColor = fpSpread.TouchSelectionGripperLineColor;
            btnGripperLineColor.Click += BtnClick_ShowColorDialog;

            btnGripperBackColor.BackColor = fpSpread.TouchSelectionGripperBackColor;
            btnGripperBackColor.Click += BtnClick_ShowColorDialog;

            numericGripperThickness.Value = 2;
            numericGripperThickness.ValueChanged += NumericUpDown_ValueChanged;

            chkOptimizedTouchSelection.Checked = fpSpread.UseOptimizedSelectionForTouch;
            chkOptimizedTouchSelection.CheckedChanged += CheckBox_CheckedChanged;

            chkTapToAddSelection.Checked = fpSpread.TapToAddSelection;
            chkTapToAddSelection.CheckedChanged += CheckBox_CheckedChanged;

            comboOperationMode.DataSource = Enum.GetValues(typeof(OperationMode));
            comboOperationMode.SelectedItem = fpSpread.ActiveSheet.OperationMode;
            comboOperationMode.SelectedIndexChanged += ComboBoxSheetProperty_SelectedIndexChanged;

            comboSelectionPolicy.DataSource = Enum.GetValues(typeof(SelectionPolicy));
            comboSelectionPolicy.SelectedItem = fpSpread.ActiveSheet.SelectionPolicy;
            comboSelectionPolicy.SelectedIndexChanged += ComboBoxSheetProperty_SelectedIndexChanged;

            comboResizeZeroIndicator.DataSource = Enum.GetValues(typeof(ResizeZeroIndicator));
            comboResizeZeroIndicator.SelectedItem = fpSpread.ResizeZeroIndicator;
            comboResizeZeroIndicator.SelectedIndexChanged += ComboBoxSpreadProperty_SelectedIndexChanged;

            chkScaleByZoom.CheckedChanged += ChkScaleByZoom_CheckedChanged;

            numericTouchDropdownScale.Value = (decimal)fpSpread.TouchDropDownScale;
            numericTouchDropdownScale.ValueChanged += NumericUpDown_ValueChanged;

            chkRightToLeft.Checked = false;
            chkRightToLeft.CheckedChanged += ChkRightToLeft_CheckedChanged;

            comboPanningMode.DataSource = Enum.GetValues(typeof(SpreadPanningMode));
            comboPanningMode.SelectedItem = fpSpread.PanningMode;
            comboPanningMode.SelectedIndexChanged += ComboBoxSpreadProperty_SelectedIndexChanged;

            comboFeedbackMode.DataSource = Enum.GetValues(typeof(BoundaryFeedbackMode));
            comboFeedbackMode.SelectedItem = fpSpread.BoundaryFeedbackMode;
            comboFeedbackMode.SelectedIndexChanged += ComboBoxSpreadProperty_SelectedIndexChanged;

            chkAutoScroll.Checked = fpSpread.AutoScrollWhenKeyboardShowing;
            chkAutoScroll.CheckedChanged += CheckBox_CheckedChanged;

            comboInputScope.DataSource = Enum.GetValues(typeof(InputScopeNameValue));
            comboInputScope.SelectedItem = fpSpread.InputScope;
            comboInputScope.SelectedIndexChanged += ComboBoxSpreadProperty_SelectedIndexChanged;

            btnShowKeyboard.Click += BtnShowHideKeyboard_Click;
            btnHideKeyboard.Click += BtnShowHideKeyboard_Click;

            chkAllowUserTouchZoom.Checked = fpSpread.AllowUserToTouchZoom;
            chkAllowUserTouchZoom.CheckedChanged += CheckBox_CheckedChanged;

            numericMinZoomFactor.Value = (decimal)fpSpread.MinZoomFactor;
            numericMinZoomFactor.ValueChanged += NumericUpDown_ValueChanged;

            btnTouchZoomSnapPoints.Click += BtnTouchZoomSnapPoints_Click;

            numericTouchZoomSnapDistance.Value = (decimal)fpSpread.TouchZoomSnapDistance;
            numericTouchZoomSnapDistance.ValueChanged += NumericUpDown_ValueChanged;
        }

        private void ToggleKeyboardVisibility(bool show)
        {
            if (show)
            {
                fpSpread.Focus();
                fpSpread.ShowTouchKeyboard();
            }
            else
                fpSpread.HideTouchKeyboard();
        }
        #endregion

        #region Event handlers
        private void CheckBox_CheckedChanged(object sender, EventArgs e)
        {
            CheckBox checkBox = sender as CheckBox;
            fpSpread.GetType().GetProperty(checkBox.Tag.ToString()).SetValue(fpSpread, checkBox.Checked);
        }

        private void BtnClick_ShowColorDialog(object sender, EventArgs e)
        {
            Button button = sender as Button;
            ColorDialog dialog = new ColorDialog();
            dialog.Color = button.BackColor;

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                button.BackColor = dialog.Color;
                fpSpread.GetType().GetProperty(button.Tag.ToString()).SetValue(fpSpread, button.BackColor);
            }
        }

        private void NumericUpDown_ValueChanged(object sender, EventArgs e)
        {
            NumericUpDown numericUpDown = sender as NumericUpDown;
            PropertyInfo propertyInfo = fpSpread.GetType().GetProperty(numericUpDown.Tag.ToString());

            TypeConverter converter = TypeDescriptor.GetConverter(propertyInfo.PropertyType);
            propertyInfo.SetValue(fpSpread, converter.ConvertFromString(numericUpDown.Value.ToString()));
        }

        private void ChkScaleByZoom_CheckedChanged(object sender, EventArgs e)
        {
            numericTouchDropdownScale.Enabled = !chkScaleByZoom.Checked;
            if (chkScaleByZoom.Checked)
                fpSpread.TouchDropDownScale = 0;
            else
                fpSpread.TouchDropDownScale = (float)numericTouchDropdownScale.Value;

        }

        private void ComboBoxSheetProperty_SelectedIndexChanged(object sender, EventArgs e)
        {
            ComboBox comboBox = sender as ComboBox;

            if (comboBox.Tag.ToString() == "OperationMode")
                comboSelectionPolicy.Enabled = (OperationMode)comboBox.SelectedItem == OperationMode.Normal || (OperationMode)comboBox.SelectedItem == OperationMode.ReadOnly;

            foreach (SheetView sheet in fpSpread.Sheets)
            {
                sheet.GetType().GetProperty(comboBox.Tag.ToString()).SetValue(sheet, comboBox.SelectedItem);
            }
        }

        private void ComboBoxSpreadProperty_SelectedIndexChanged(object sender, EventArgs e)
        {
            ComboBox comboBox = sender as ComboBox;
            fpSpread.GetType().GetProperty(comboBox.Tag.ToString()).SetValue(fpSpread, comboBox.SelectedItem);
        }

        private void ChkRightToLeft_CheckedChanged(object sender, EventArgs e)
        {
            fpSpread.RightToLeft = chkRightToLeft.Checked ? RightToLeft.Yes : RightToLeft.No;
        }

        private void BtnShowHideKeyboard_Click(object sender, EventArgs e)
        {
            ToggleKeyboardVisibility((sender as Button).Tag.ToString() == "ShowKeyboard");
        }

        private void BtnTouchZoomSnapPoints_Click(object sender, EventArgs e)
        {
            PropertyDescriptor pd = TypeDescriptor.GetProperties(typeof(FpSpread))["TouchZoomSnapPoints"];
            if (pd != null)
            {
                EditorAttribute editor = (EditorAttribute)pd.Attributes[typeof(EditorAttribute)];

                if (editor != null && Type.GetType(editor.EditorBaseTypeName).Equals(typeof(System.Drawing.Design.UITypeEditor)))
                {
                    System.Drawing.Design.UITypeEditor ed = (System.Drawing.Design.UITypeEditor)Activator.CreateInstance(Type.GetType(editor.EditorTypeName), new object[] { typeof(List<float>) });
                    CollectionEditorContext context = new CollectionEditorContext(this, pd);
                    object o = ed.EditValue(context, context, fpSpread.TouchZoomSnapPoints);
                }
            }
        }
        #endregion

        #region  CollectionEditorContext
        private class CollectionEditorContext : ITypeDescriptorContext, System.Windows.Forms.Design.IWindowsFormsEditorService
        {
            private object target;
            private PropertyDescriptor pd;

            private DialogResult dr = DialogResult.None;
            private int _selectionIndex = -1;

            public CollectionEditorContext(object target, PropertyDescriptor pd)
            {
                this.target = target;
                this.pd = pd;
            }

            #region ITypeDescriptorContext Members

            public IContainer Container
            {
                get { return null; }
            }

            public object Instance
            {
                get { return target; }
            }

            public DialogResult DialogResult
            {
                get { return dr; }
            }

            public int SelectionIndex
            {
                get { return _selectionIndex; }
            }

            public void OnComponentChanged()
            {
            }

            public bool OnComponentChanging()
            {
                return true;
            }

            public PropertyDescriptor PropertyDescriptor
            {
                get { return pd; }
            }

            #endregion

            #region IServiceProvider Members

            public object GetService(Type serviceType)
            {
                if (serviceType.Equals(typeof(System.Windows.Forms.Design.IWindowsFormsEditorService)))
                    return this;
                return null;
            }

            #endregion

            #region IWindowsFormsEditorService Members

            public void CloseDropDown()
            {
            }

            public void DropDownControl(System.Windows.Forms.Control control)
            {
            }

            public DialogResult ShowDialog(System.Windows.Forms.Form dialog)
            {
                foreach (System.Windows.Forms.Control ctl in dialog.Controls)
                {
                    if (ctl is System.Windows.Forms.ListBox)
                    {
                        ((System.Windows.Forms.ListBox)ctl).SelectedIndexChanged += new EventHandler(CollectionEditorContext_SelectedIndexChanged);
                    }
                }

                dr = dialog.ShowDialog();

                foreach (System.Windows.Forms.Control ctl in dialog.Controls)
                {
                    if (ctl is System.Windows.Forms.ListBox)
                    {
                        ((System.Windows.Forms.ListBox)ctl).SelectedIndexChanged -= new EventHandler(CollectionEditorContext_SelectedIndexChanged);
                    }
                }
                return dr;
            }

            void CollectionEditorContext_SelectedIndexChanged(object sender, EventArgs e)
            {
                _selectionIndex = ((System.Windows.Forms.ListBox)sender).SelectedIndex;
                // throw new Exception("The method or operation is not implemented.");
            }

            #endregion
        }
        #endregion
    }
}


//
//IntroTouch.Designer.cs
//


namespace Spread.Touch.Features
{
    partial class IntroTouch
    {
        /// <summary> 
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary> 
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Component Designer generated code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.fpSpread = new FarPoint.Win.Spread.FpSpread();
            this.fpSpread_Sheet1 = new FarPoint.Win.Spread.SheetView();
            this.tabControl1 = new System.Windows.Forms.TabControl();
            this.tabPageGrippers = new System.Windows.Forms.TabPage();
            this.groupBox2 = new System.Windows.Forms.GroupBox();
            this.chkScaleByZoom = new System.Windows.Forms.CheckBox();
            this.numericTouchDropdownScale = new System.Windows.Forms.NumericUpDown();
            this.label13 = new System.Windows.Forms.Label();
            this.label12 = new System.Windows.Forms.Label();
            this.comboResizeZeroIndicator = new System.Windows.Forms.ComboBox();
            this.chkRightToLeft = new System.Windows.Forms.CheckBox();
            this.comboSelectionPolicy = new System.Windows.Forms.ComboBox();
            this.label5 = new System.Windows.Forms.Label();
            this.comboOperationMode = new System.Windows.Forms.ComboBox();
            this.label4 = new System.Windows.Forms.Label();
            this.chkTapToAddSelection = new System.Windows.Forms.CheckBox();
            this.chkOptimizedTouchSelection = new System.Windows.Forms.CheckBox();
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.numericGripperThickness = new System.Windows.Forms.NumericUpDown();
            this.label3 = new System.Windows.Forms.Label();
            this.btnGripperBackColor = new System.Windows.Forms.Button();
            this.label2 = new System.Windows.Forms.Label();
            this.btnGripperLineColor = new System.Windows.Forms.Button();
            this.label1 = new System.Windows.Forms.Label();
            this.chkShowGrippers = new System.Windows.Forms.CheckBox();
            this.tabPageScroll = new System.Windows.Forms.TabPage();
            this.comboFeedbackMode = new System.Windows.Forms.ComboBox();
            this.label7 = new System.Windows.Forms.Label();
            this.label6 = new System.Windows.Forms.Label();
            this.comboPanningMode = new System.Windows.Forms.ComboBox();
            this.tabPageKeyboard = new System.Windows.Forms.TabPage();
            this.btnHideKeyboard = new System.Windows.Forms.Button();
            this.btnShowKeyboard = new System.Windows.Forms.Button();
            this.comboInputScope = new System.Windows.Forms.ComboBox();
            this.label8 = new System.Windows.Forms.Label();
            this.chkAutoScroll = new System.Windows.Forms.CheckBox();
            this.tabPageZoom = new System.Windows.Forms.TabPage();
            this.numericTouchZoomSnapDistance = new System.Windows.Forms.NumericUpDown();
            this.label11 = new System.Windows.Forms.Label();
            this.btnTouchZoomSnapPoints = new System.Windows.Forms.Button();
            this.numericMinZoomFactor = new System.Windows.Forms.NumericUpDown();
            this.label10 = new System.Windows.Forms.Label();
            this.label9 = new System.Windows.Forms.Label();
            this.chkAllowUserTouchZoom = new System.Windows.Forms.CheckBox();
            this.pnlMain.SuspendLayout();
            this.pnlControls.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.fpSpread)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.fpSpread_Sheet1)).BeginInit();
            this.tabControl1.SuspendLayout();
            this.tabPageGrippers.SuspendLayout();
            this.groupBox2.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.numericTouchDropdownScale)).BeginInit();
            this.groupBox1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.numericGripperThickness)).BeginInit();
            this.tabPageScroll.SuspendLayout();
            this.tabPageKeyboard.SuspendLayout();
            this.tabPageZoom.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.numericTouchZoomSnapDistance)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.numericMinZoomFactor)).BeginInit();
            this.SuspendLayout();
            // 
            // pnlMain
            // 
            this.pnlMain.Controls.Add(this.fpSpread);
            this.pnlMain.Size = new System.Drawing.Size(477, 534);
            // 
            // pnlControls
            // 
            this.pnlControls.Controls.Add(this.tabControl1);
            this.pnlControls.Size = new System.Drawing.Size(157, 534);
            // 
            // fpSpread
            // 
            this.fpSpread.Dock = System.Windows.Forms.DockStyle.Fill;
            this.fpSpread.Location = new System.Drawing.Point(0, 0);
            this.fpSpread.Name = "fpSpread";
            this.fpSpread.Sheets.AddRange(new FarPoint.Win.Spread.SheetView[] {
            this.fpSpread_Sheet1});
            this.fpSpread.Size = new System.Drawing.Size(477, 534);
            this.fpSpread.Skin = FarPoint.Win.Spread.DefaultSpreadSkins.Office2016White;
            this.fpSpread.StatusBarVisible = true;
            this.fpSpread.TabIndex = 0;
            // 
            // fpSpread_Sheet1
            // 
            this.fpSpread_Sheet1.Reset();
            this.fpSpread_Sheet1.SheetName = "Sheet1";
            // Formulas and custom names must be loaded with R1C1 reference style
            this.fpSpread_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1;
            this.fpSpread_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
            // 
            // tabControl1
            // 
            this.tabControl1.Controls.Add(this.tabPageGrippers);
            this.tabControl1.Controls.Add(this.tabPageScroll);
            this.tabControl1.Controls.Add(this.tabPageKeyboard);
            this.tabControl1.Controls.Add(this.tabPageZoom);
            this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tabControl1.Location = new System.Drawing.Point(0, 0);
            this.tabControl1.Name = "tabControl1";
            this.tabControl1.SelectedIndex = 0;
            this.tabControl1.Size = new System.Drawing.Size(157, 534);
            this.tabControl1.TabIndex = 0;
            // 
            // tabPageGrippers
            // 
            this.tabPageGrippers.Controls.Add(this.groupBox2);
            this.tabPageGrippers.Controls.Add(this.chkTapToAddSelection);
            this.tabPageGrippers.Controls.Add(this.chkOptimizedTouchSelection);
            this.tabPageGrippers.Controls.Add(this.groupBox1);
            this.tabPageGrippers.Controls.Add(this.chkShowGrippers);
            this.tabPageGrippers.Location = new System.Drawing.Point(4, 22);
            this.tabPageGrippers.Name = "tabPageGrippers";
            this.tabPageGrippers.Padding = new System.Windows.Forms.Padding(3);
            this.tabPageGrippers.Size = new System.Drawing.Size(149, 508);
            this.tabPageGrippers.TabIndex = 0;
            this.tabPageGrippers.Text = "Selection";
            this.tabPageGrippers.UseVisualStyleBackColor = true;
            // 
            // groupBox2
            // 
            this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.groupBox2.Controls.Add(this.chkScaleByZoom);
            this.groupBox2.Controls.Add(this.numericTouchDropdownScale);
            this.groupBox2.Controls.Add(this.label13);
            this.groupBox2.Controls.Add(this.label12);
            this.groupBox2.Controls.Add(this.comboResizeZeroIndicator);
            this.groupBox2.Controls.Add(this.chkRightToLeft);
            this.groupBox2.Controls.Add(this.comboSelectionPolicy);
            this.groupBox2.Controls.Add(this.label5);
            this.groupBox2.Controls.Add(this.comboOperationMode);
            this.groupBox2.Controls.Add(this.label4);
            this.groupBox2.Location = new System.Drawing.Point(3, 233);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new System.Drawing.Size(143, 269);
            this.groupBox2.TabIndex = 8;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "Interaction";
            // 
            // chkScaleByZoom
            // 
            this.chkScaleByZoom.AutoSize = true;
            this.chkScaleByZoom.Location = new System.Drawing.Point(6, 163);
            this.chkScaleByZoom.Name = "chkScaleByZoom";
            this.chkScaleByZoom.Size = new System.Drawing.Size(182, 17);
            this.chkScaleByZoom.TabIndex = 15;
            this.chkScaleByZoom.Text = "Scale Dropdown by Zoom Factor";
            this.chkScaleByZoom.UseVisualStyleBackColor = true;
            // 
            // numericTouchDropdownScale
            // 
            this.numericTouchDropdownScale.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.numericTouchDropdownScale.DecimalPlaces = 1;
            this.numericTouchDropdownScale.Increment = new decimal(new int[] {
            1,
            0,
            0,
            65536});
            this.numericTouchDropdownScale.Location = new System.Drawing.Point(9, 199);
            this.numericTouchDropdownScale.Maximum = new decimal(new int[] {
            4,
            0,
            0,
            0});
            this.numericTouchDropdownScale.Minimum = new decimal(new int[] {
            1,
            0,
            0,
            0});
            this.numericTouchDropdownScale.Name = "numericTouchDropdownScale";
            this.numericTouchDropdownScale.Size = new System.Drawing.Size(128, 20);
            this.numericTouchDropdownScale.TabIndex = 14;
            this.numericTouchDropdownScale.Tag = "TouchDropDownScale";
            this.numericTouchDropdownScale.Value = new decimal(new int[] {
            1,
            0,
            0,
            0});
            // 
            // label13
            // 
            this.label13.AutoSize = true;
            this.label13.Location = new System.Drawing.Point(6, 183);
            this.label13.Name = "label13";
            this.label13.Size = new System.Drawing.Size(120, 13);
            this.label13.TabIndex = 13;
            this.label13.Text = "Touch Dropdown Scale";
            // 
            // label12
            // 
            this.label12.AutoSize = true;
            this.label12.Location = new System.Drawing.Point(6, 112);
            this.label12.Name = "label12";
            this.label12.Size = new System.Drawing.Size(111, 13);
            this.label12.TabIndex = 12;
            this.label12.Text = "Resize Zero Indicator:";
            // 
            // comboResizeZeroIndicator
            // 
            this.comboResizeZeroIndicator.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.comboResizeZeroIndicator.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.comboResizeZeroIndicator.FormattingEnabled = true;
            this.comboResizeZeroIndicator.Location = new System.Drawing.Point(10, 128);
            this.comboResizeZeroIndicator.Name = "comboResizeZeroIndicator";
            this.comboResizeZeroIndicator.Size = new System.Drawing.Size(127, 21);
            this.comboResizeZeroIndicator.TabIndex = 11;
            this.comboResizeZeroIndicator.Tag = "ResizeZeroIndicator";
            // 
            // chkRightToLeft
            // 
            this.chkRightToLeft.AutoSize = true;
            this.chkRightToLeft.Location = new System.Drawing.Point(10, 236);
            this.chkRightToLeft.Name = "chkRightToLeft";
            this.chkRightToLeft.Size = new System.Drawing.Size(84, 17);
            this.chkRightToLeft.TabIndex = 10;
            this.chkRightToLeft.Tag = "RightToLeft";
            this.chkRightToLeft.Text = "Right to Left";
            this.chkRightToLeft.UseVisualStyleBackColor = true;
            // 
            // comboSelectionPolicy
            // 
            this.comboSelectionPolicy.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.comboSelectionPolicy.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.comboSelectionPolicy.FormattingEnabled = true;
            this.comboSelectionPolicy.Location = new System.Drawing.Point(10, 81);
            this.comboSelectionPolicy.Name = "comboSelectionPolicy";
            this.comboSelectionPolicy.Size = new System.Drawing.Size(127, 21);
            this.comboSelectionPolicy.TabIndex = 9;
            this.comboSelectionPolicy.Tag = "SelectionPolicy";
            // 
            // label5
            // 
            this.label5.AutoSize = true;
            this.label5.Location = new System.Drawing.Point(7, 65);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(85, 13);
            this.label5.TabIndex = 8;
            this.label5.Text = "Selection Policy:";
            // 
            // comboOperationMode
            // 
            this.comboOperationMode.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.comboOperationMode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.comboOperationMode.FormattingEnabled = true;
            this.comboOperationMode.Location = new System.Drawing.Point(10, 36);
            this.comboOperationMode.Name = "comboOperationMode";
            this.comboOperationMode.Size = new System.Drawing.Size(127, 21);
            this.comboOperationMode.TabIndex = 7;
            this.comboOperationMode.Tag = "OperationMode";
            // 
            // label4
            // 
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(7, 19);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(86, 13);
            this.label4.TabIndex = 6;
            this.label4.Text = "Operation Mode:";
            // 
            // chkTapToAddSelection
            // 
            this.chkTapToAddSelection.AutoSize = true;
            this.chkTapToAddSelection.Location = new System.Drawing.Point(6, 198);
            this.chkTapToAddSelection.Name = "chkTapToAddSelection";
            this.chkTapToAddSelection.Size = new System.Drawing.Size(126, 17);
            this.chkTapToAddSelection.TabIndex = 7;
            this.chkTapToAddSelection.Tag = "TapToAddSelection";
            this.chkTapToAddSelection.Text = "Tap to Add Selection";
            this.chkTapToAddSelection.UseVisualStyleBackColor = true;
            // 
            // chkOptimizedTouchSelection
            // 
            this.chkOptimizedTouchSelection.AutoSize = true;
            this.chkOptimizedTouchSelection.Location = new System.Drawing.Point(6, 175);
            this.chkOptimizedTouchSelection.Name = "chkOptimizedTouchSelection";
            this.chkOptimizedTouchSelection.Size = new System.Drawing.Size(190, 17);
            this.chkOptimizedTouchSelection.TabIndex = 6;
            this.chkOptimizedTouchSelection.Tag = "UseOptimizedSelectionForTouch";
            this.chkOptimizedTouchSelection.Text = "Use Optimized Selection for Touch";
            this.chkOptimizedTouchSelection.UseVisualStyleBackColor = true;
            // 
            // groupBox1
            // 
            this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.groupBox1.Controls.Add(this.numericGripperThickness);
            this.groupBox1.Controls.Add(this.label3);
            this.groupBox1.Controls.Add(this.btnGripperBackColor);
            this.groupBox1.Controls.Add(this.label2);
            this.groupBox1.Controls.Add(this.btnGripperLineColor);
            this.groupBox1.Controls.Add(this.label1);
            this.groupBox1.Location = new System.Drawing.Point(3, 45);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(143, 124);
            this.groupBox1.TabIndex = 1;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "Gripper Style";
            // 
            // numericGripperThickness
            // 
            this.numericGripperThickness.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.numericGripperThickness.Location = new System.Drawing.Point(65, 87);
            this.numericGripperThickness.Maximum = new decimal(new int[] {
            4,
            0,
            0,
            0});
            this.numericGripperThickness.Minimum = new decimal(new int[] {
            1,
            0,
            0,
            0});
            this.numericGripperThickness.Name = "numericGripperThickness";
            this.numericGripperThickness.Size = new System.Drawing.Size(75, 20);
            this.numericGripperThickness.TabIndex = 5;
            this.numericGripperThickness.Tag = "TouchSelectionGripperThickness";
            this.numericGripperThickness.Value = new decimal(new int[] {
            1,
            0,
            0,
            0});
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(6, 89);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(59, 13);
            this.label3.TabIndex = 4;
            this.label3.Text = "Thickness:";
            // 
            // btnGripperBackColor
            // 
            this.btnGripperBackColor.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.btnGripperBackColor.Location = new System.Drawing.Point(65, 51);
            this.btnGripperBackColor.Name = "btnGripperBackColor";
            this.btnGripperBackColor.Size = new System.Drawing.Size(75, 23);
            this.btnGripperBackColor.TabIndex = 3;
            this.btnGripperBackColor.Tag = "TouchSelectionGripperBackColor";
            this.btnGripperBackColor.UseVisualStyleBackColor = true;
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(4, 56);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(62, 13);
            this.label2.TabIndex = 2;
            this.label2.Text = "Back Color:";
            // 
            // btnGripperLineColor
            // 
            this.btnGripperLineColor.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.btnGripperLineColor.Location = new System.Drawing.Point(65, 20);
            this.btnGripperLineColor.Name = "btnGripperLineColor";
            this.btnGripperLineColor.Size = new System.Drawing.Size(75, 23);
            this.btnGripperLineColor.TabIndex = 1;
            this.btnGripperLineColor.Tag = "TouchSelectionGripperLineColor";
            this.btnGripperLineColor.UseVisualStyleBackColor = true;
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(4, 25);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(57, 13);
            this.label1.TabIndex = 0;
            this.label1.Text = "Line Color:";
            // 
            // chkShowGrippers
            // 
            this.chkShowGrippers.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.chkShowGrippers.AutoSize = true;
            this.chkShowGrippers.Location = new System.Drawing.Point(6, 15);
            this.chkShowGrippers.Name = "chkShowGrippers";
            this.chkShowGrippers.Size = new System.Drawing.Size(174, 17);
            this.chkShowGrippers.TabIndex = 0;
            this.chkShowGrippers.Tag = "ShowGrippersInEditingStatus";
            this.chkShowGrippers.Text = "Show Grippers in Editing Status";
            this.chkShowGrippers.UseVisualStyleBackColor = true;
            // 
            // tabPageScroll
            // 
            this.tabPageScroll.Controls.Add(this.comboFeedbackMode);
            this.tabPageScroll.Controls.Add(this.label7);
            this.tabPageScroll.Controls.Add(this.label6);
            this.tabPageScroll.Controls.Add(this.comboPanningMode);
            this.tabPageScroll.Location = new System.Drawing.Point(4, 22);
            this.tabPageScroll.Name = "tabPageScroll";
            this.tabPageScroll.Padding = new System.Windows.Forms.Padding(3);
            this.tabPageScroll.Size = new System.Drawing.Size(149, 461);
            this.tabPageScroll.TabIndex = 1;
            this.tabPageScroll.Text = "Scroll";
            this.tabPageScroll.UseVisualStyleBackColor = true;
            // 
            // comboFeedbackMode
            // 
            this.comboFeedbackMode.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.comboFeedbackMode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.comboFeedbackMode.FormattingEnabled = true;
            this.comboFeedbackMode.Location = new System.Drawing.Point(7, 78);
            this.comboFeedbackMode.Name = "comboFeedbackMode";
            this.comboFeedbackMode.Size = new System.Drawing.Size(137, 21);
            this.comboFeedbackMode.TabIndex = 3;
            this.comboFeedbackMode.Tag = "BoundaryFeedbackMode";
            // 
            // label7
            // 
            this.label7.AutoSize = true;
            this.label7.Location = new System.Drawing.Point(4, 62);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(136, 13);
            this.label7.TabIndex = 2;
            this.label7.Text = "Boundary Feedback Mode:";
            // 
            // label6
            // 
            this.label6.AutoSize = true;
            this.label6.Location = new System.Drawing.Point(4, 12);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(79, 13);
            this.label6.TabIndex = 1;
            this.label6.Text = "Panning Mode:";
            // 
            // comboPanningMode
            // 
            this.comboPanningMode.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.comboPanningMode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.comboPanningMode.FormattingEnabled = true;
            this.comboPanningMode.Location = new System.Drawing.Point(6, 28);
            this.comboPanningMode.Name = "comboPanningMode";
            this.comboPanningMode.Size = new System.Drawing.Size(137, 21);
            this.comboPanningMode.TabIndex = 0;
            this.comboPanningMode.Tag = "PanningMode";
            // 
            // tabPageKeyboard
            // 
            this.tabPageKeyboard.Controls.Add(this.btnHideKeyboard);
            this.tabPageKeyboard.Controls.Add(this.btnShowKeyboard);
            this.tabPageKeyboard.Controls.Add(this.comboInputScope);
            this.tabPageKeyboard.Controls.Add(this.label8);
            this.tabPageKeyboard.Controls.Add(this.chkAutoScroll);
            this.tabPageKeyboard.Location = new System.Drawing.Point(4, 22);
            this.tabPageKeyboard.Name = "tabPageKeyboard";
            this.tabPageKeyboard.Size = new System.Drawing.Size(149, 461);
            this.tabPageKeyboard.TabIndex = 2;
            this.tabPageKeyboard.Text = "Keyboard";
            this.tabPageKeyboard.UseVisualStyleBackColor = true;
            // 
            // btnHideKeyboard
            // 
            this.btnHideKeyboard.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.btnHideKeyboard.Location = new System.Drawing.Point(9, 130);
            this.btnHideKeyboard.Name = "btnHideKeyboard";
            this.btnHideKeyboard.Size = new System.Drawing.Size(130, 23);
            this.btnHideKeyboard.TabIndex = 4;
            this.btnHideKeyboard.Tag = "HideKeyboard";
            this.btnHideKeyboard.Text = "Hide Keyboard";
            this.btnHideKeyboard.UseVisualStyleBackColor = true;
            // 
            // btnShowKeyboard
            // 
            this.btnShowKeyboard.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.btnShowKeyboard.Location = new System.Drawing.Point(9, 101);
            this.btnShowKeyboard.Name = "btnShowKeyboard";
            this.btnShowKeyboard.Size = new System.Drawing.Size(130, 23);
            this.btnShowKeyboard.TabIndex = 3;
            this.btnShowKeyboard.Tag = "ShowKeyboard";
            this.btnShowKeyboard.Text = "Show Keyboard";
            this.btnShowKeyboard.UseVisualStyleBackColor = true;
            // 
            // comboInputScope
            // 
            this.comboInputScope.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.comboInputScope.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.comboInputScope.FormattingEnabled = true;
            this.comboInputScope.Location = new System.Drawing.Point(9, 62);
            this.comboInputScope.Name = "comboInputScope";
            this.comboInputScope.Size = new System.Drawing.Size(124, 21);
            this.comboInputScope.TabIndex = 2;
            this.comboInputScope.Tag = "InputScope";
            // 
            // label8
            // 
            this.label8.AutoSize = true;
            this.label8.Location = new System.Drawing.Point(6, 45);
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size(65, 13);
            this.label8.TabIndex = 1;
            this.label8.Text = "InputScope:";
            // 
            // chkAutoScroll
            // 
            this.chkAutoScroll.AutoSize = true;
            this.chkAutoScroll.Location = new System.Drawing.Point(9, 14);
            this.chkAutoScroll.Name = "chkAutoScroll";
            this.chkAutoScroll.Size = new System.Drawing.Size(200, 17);
            this.chkAutoScroll.TabIndex = 0;
            this.chkAutoScroll.Tag = "AutoScrollWhenKeyboardShowing";
            this.chkAutoScroll.Text = "Auto Scroll When Keyboard is Visible";
            this.chkAutoScroll.UseVisualStyleBackColor = true;
            // 
            // tabPageZoom
            // 
            this.tabPageZoom.Controls.Add(this.numericTouchZoomSnapDistance);
            this.tabPageZoom.Controls.Add(this.label11);
            this.tabPageZoom.Controls.Add(this.btnTouchZoomSnapPoints);
            this.tabPageZoom.Controls.Add(this.numericMinZoomFactor);
            this.tabPageZoom.Controls.Add(this.label10);
            this.tabPageZoom.Controls.Add(this.label9);
            this.tabPageZoom.Controls.Add(this.chkAllowUserTouchZoom);
            this.tabPageZoom.Location = new System.Drawing.Point(4, 22);
            this.tabPageZoom.Name = "tabPageZoom";
            this.tabPageZoom.Size = new System.Drawing.Size(149, 461);
            this.tabPageZoom.TabIndex = 3;
            this.tabPageZoom.Text = "Zoom";
            this.tabPageZoom.UseVisualStyleBackColor = true;
            // 
            // numericTouchZoomSnapDistance
            // 
            this.numericTouchZoomSnapDistance.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.numericTouchZoomSnapDistance.DecimalPlaces = 2;
            this.numericTouchZoomSnapDistance.Increment = new decimal(new int[] {
            5,
            0,
            0,
            131072});
            this.numericTouchZoomSnapDistance.Location = new System.Drawing.Point(101, 133);
            this.numericTouchZoomSnapDistance.Name = "numericTouchZoomSnapDistance";
            this.numericTouchZoomSnapDistance.Size = new System.Drawing.Size(45, 20);
            this.numericTouchZoomSnapDistance.TabIndex = 6;
            this.numericTouchZoomSnapDistance.Tag = "TouchZoomSnapDistance";
            // 
            // label11
            // 
            this.label11.Location = new System.Drawing.Point(5, 130);
            this.label11.Name = "label11";
            this.label11.Size = new System.Drawing.Size(98, 30);
            this.label11.TabIndex = 5;
            this.label11.Text = "Touch Zoom Snap Distance";
            // 
            // btnTouchZoomSnapPoints
            // 
            this.btnTouchZoomSnapPoints.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.btnTouchZoomSnapPoints.Location = new System.Drawing.Point(101, 83);
            this.btnTouchZoomSnapPoints.Name = "btnTouchZoomSnapPoints";
            this.btnTouchZoomSnapPoints.Size = new System.Drawing.Size(45, 23);
            this.btnTouchZoomSnapPoints.TabIndex = 4;
            this.btnTouchZoomSnapPoints.Text = "...";
            this.btnTouchZoomSnapPoints.UseVisualStyleBackColor = true;
            // 
            // numericMinZoomFactor
            // 
            this.numericMinZoomFactor.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.numericMinZoomFactor.DecimalPlaces = 1;
            this.numericMinZoomFactor.Increment = new decimal(new int[] {
            1,
            0,
            0,
            65536});
            this.numericMinZoomFactor.Location = new System.Drawing.Point(101, 44);
            this.numericMinZoomFactor.Maximum = new decimal(new int[] {
            40,
            0,
            0,
            65536});
            this.numericMinZoomFactor.Minimum = new decimal(new int[] {
            1,
            0,
            0,
            65536});
            this.numericMinZoomFactor.Name = "numericMinZoomFactor";
            this.numericMinZoomFactor.Size = new System.Drawing.Size(45, 20);
            this.numericMinZoomFactor.TabIndex = 3;
            this.numericMinZoomFactor.Tag = "MinZoomFactor";
            this.numericMinZoomFactor.Value = new decimal(new int[] {
            1,
            0,
            0,
            65536});
            // 
            // label10
            // 
            this.label10.AutoSize = true;
            this.label10.Location = new System.Drawing.Point(6, 46);
            this.label10.Name = "label10";
            this.label10.Size = new System.Drawing.Size(87, 13);
            this.label10.TabIndex = 2;
            this.label10.Text = "Min Zoom Factor";
            // 
            // label9
            // 
            this.label9.Location = new System.Drawing.Point(5, 80);
            this.label9.Name = "label9";
            this.label9.Size = new System.Drawing.Size(98, 34);
            this.label9.TabIndex = 1;
            this.label9.Text = "Touch Zoom Snap Points";
            // 
            // chkAllowUserTouchZoom
            // 
            this.chkAllowUserTouchZoom.AutoSize = true;
            this.chkAllowUserTouchZoom.Location = new System.Drawing.Point(8, 13);
            this.chkAllowUserTouchZoom.Name = "chkAllowUserTouchZoom";
            this.chkAllowUserTouchZoom.Size = new System.Drawing.Size(152, 17);
            this.chkAllowUserTouchZoom.TabIndex = 0;
            this.chkAllowUserTouchZoom.Tag = "AllowUserToTouchZoom";
            this.chkAllowUserTouchZoom.Text = "Allow User to Touch Zoom";
            this.chkAllowUserTouchZoom.UseVisualStyleBackColor = true;
            // 
            // IntroTouch
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Name = "IntroTouch";
            this.Size = new System.Drawing.Size(635, 534);
            this.pnlMain.ResumeLayout(false);
            this.pnlControls.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.fpSpread)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.fpSpread_Sheet1)).EndInit();
            this.tabControl1.ResumeLayout(false);
            this.tabPageGrippers.ResumeLayout(false);
            this.tabPageGrippers.PerformLayout();
            this.groupBox2.ResumeLayout(false);
            this.groupBox2.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.numericTouchDropdownScale)).EndInit();
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.numericGripperThickness)).EndInit();
            this.tabPageScroll.ResumeLayout(false);
            this.tabPageScroll.PerformLayout();
            this.tabPageKeyboard.ResumeLayout(false);
            this.tabPageKeyboard.PerformLayout();
            this.tabPageZoom.ResumeLayout(false);
            this.tabPageZoom.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.numericTouchZoomSnapDistance)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.numericMinZoomFactor)).EndInit();
            this.ResumeLayout(false);

        }

        #endregion

        private FarPoint.Win.Spread.FpSpread fpSpread;
        private FarPoint.Win.Spread.SheetView fpSpread_Sheet1;
        private System.Windows.Forms.TabControl tabControl1;
        private System.Windows.Forms.TabPage tabPageGrippers;
        private System.Windows.Forms.GroupBox groupBox1;
        private System.Windows.Forms.CheckBox chkShowGrippers;
        private System.Windows.Forms.TabPage tabPageScroll;
        private System.Windows.Forms.NumericUpDown numericGripperThickness;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.Button btnGripperBackColor;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.Button btnGripperLineColor;
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.CheckBox chkTapToAddSelection;
        private System.Windows.Forms.CheckBox chkOptimizedTouchSelection;
        private System.Windows.Forms.ComboBox comboPanningMode;
        private System.Windows.Forms.Label label6;
        private System.Windows.Forms.Label label7;
        private System.Windows.Forms.TabPage tabPageKeyboard;
        private System.Windows.Forms.Button btnShowKeyboard;
        private System.Windows.Forms.ComboBox comboInputScope;
        private System.Windows.Forms.Label label8;
        private System.Windows.Forms.CheckBox chkAutoScroll;
        private System.Windows.Forms.Button btnHideKeyboard;
        private System.Windows.Forms.ComboBox comboFeedbackMode;
        private System.Windows.Forms.GroupBox groupBox2;
        private System.Windows.Forms.ComboBox comboSelectionPolicy;
        private System.Windows.Forms.Label label5;
        private System.Windows.Forms.ComboBox comboOperationMode;
        private System.Windows.Forms.Label label4;
        private System.Windows.Forms.CheckBox chkRightToLeft;
        private System.Windows.Forms.TabPage tabPageZoom;
        private System.Windows.Forms.NumericUpDown numericMinZoomFactor;
        private System.Windows.Forms.Label label10;
        private System.Windows.Forms.Label label9;
        private System.Windows.Forms.CheckBox chkAllowUserTouchZoom;
        private System.Windows.Forms.Button btnTouchZoomSnapPoints;
        private System.Windows.Forms.NumericUpDown numericTouchZoomSnapDistance;
        private System.Windows.Forms.Label label11;
        private System.Windows.Forms.NumericUpDown numericTouchDropdownScale;
        private System.Windows.Forms.Label label13;
        private System.Windows.Forms.Label label12;
        private System.Windows.Forms.ComboBox comboResizeZeroIndicator;
        private System.Windows.Forms.CheckBox chkScaleByZoom;
    }
}
